package edu.bit.water.entity;

public class EntityEvaCmpWaterAnl implements Comparable<EntityEvaCmpWaterAnl> {

	private int id;						//序号
	private String waterClass;			//用水分类
	private String waterUsing;			//用水用途
	private double useWater;			//用水量
	private double useProportion;		//用水量占比
	private double newWater;			//新水量
	private double newProportion;		//新水量占比
	private double repeatWater;			//重复利用水量
	private double drainWater;			//排水量
	private double consumpWater;		//耗水量
	private double lossWater;			//漏失水量
	private int labelId;				//标签号
	private String location;			//位置编号
	
	@Override
	public int compareTo(EntityEvaCmpWaterAnl o) {
		// TODO Auto-generated method stub
		//按照位置编号、用水分类来排序
		int result = 0;
		result = this.location.compareTo(o.location);
		if(result == 0)
			result = this.waterClass.compareTo(o.waterClass);
		return result;
	}
	
	public EntityEvaCmpWaterAnl() {
		super();
		// TODO Auto-generated constructor stub
	}

	public EntityEvaCmpWaterAnl(int id, String waterClass, String waterUsing, double useWater, double useProportion,
			double newWater, double newProportion, double repeatWater, double drainWater, double consumpWater,
			double lossWater, int labelId, String location) {
		super();
		this.id = id;
		this.waterClass = waterClass;
		this.waterUsing = waterUsing;
		this.useWater = useWater;
		this.useProportion = useProportion;
		this.newWater = newWater;
		this.newProportion = newProportion;
		this.repeatWater = repeatWater;
		this.drainWater = drainWater;
		this.consumpWater = consumpWater;
		this.lossWater = lossWater;
		this.labelId = labelId;
		this.location = location;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getWaterClass() {
		return waterClass;
	}

	public void setWaterClass(String waterClass) {
		this.waterClass = waterClass;
	}

	public String getWaterUsing() {
		return waterUsing;
	}

	public void setWaterUsing(String waterUsing) {
		this.waterUsing = waterUsing;
	}

	public double getUseWater() {
		return useWater;
	}

	public void setUseWater(double useWater) {
		this.useWater = useWater;
	}

	public double getUseProportion() {
		return useProportion;
	}

	public void setUseProportion(double useProportion) {
		this.useProportion = useProportion;
	}

	public double getNewWater() {
		return newWater;
	}

	public void setNewWater(double newWater) {
		this.newWater = newWater;
	}

	public double getNewProportion() {
		return newProportion;
	}

	public void setNewProportion(double newProportion) {
		this.newProportion = newProportion;
	}

	public double getRepeatWater() {
		return repeatWater;
	}

	public void setRepeatWater(double repeatWater) {
		this.repeatWater = repeatWater;
	}

	public double getDrainWater() {
		return drainWater;
	}

	public void setDrainWater(double drainWater) {
		this.drainWater = drainWater;
	}

	public double getConsumpWater() {
		return consumpWater;
	}

	public void setConsumpWater(double consumpWater) {
		this.consumpWater = consumpWater;
	}

	public double getLossWater() {
		return lossWater;
	}

	public void setLossWater(double lossWater) {
		this.lossWater = lossWater;
	}

	public int getLabelId() {
		return labelId;
	}

	public void setLabelId(int labelId) {
		this.labelId = labelId;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	@Override
	public String toString() {
		return "EntityEvaCmpWaterAnl [id=" + id + ", waterClass=" + waterClass + ", waterUsing=" + waterUsing
				+ ", useWater=" + useWater + ", useProportion=" + useProportion + ", newWater=" + newWater
				+ ", newProportion=" + newProportion + ", repeatWater=" + repeatWater + ", drainWater=" + drainWater
				+ ", consumpWater=" + consumpWater + ", lossWater=" + lossWater + ", labelId=" + labelId + ", location="
				+ location + "]";
	}
}
